import numpy as np
import sys
f = open("time", "r")
lines = f.readlines()
amounts = []
for line in lines:
     amount = float(line.split('=')[1])
     amounts.append(amount)

# Now we can convert this 1-D array into 2-D in two ways
arr=np.asarray(amounts)
# 1. having dimension 4 x 2
arr1 = arr.reshape(14, 3)
np.savetxt(sys.stdout.buffer, arr1)
print ('\n')

